Skip to content

Conversation

@daopk
Copy link
Contributor

@daopk daopk commented Oct 31, 2025

Description

Fix type resolution for the imports option — it was showing as any in TypeScript.

This PR updates the tsdown config to bundle @antfu/utils types in the generated .d.ts output:

dts: {
  resolve: ['@antfu/utils'],
},

This ensures proper type inference for the imports option and exposes supported presets correctly.

Linked Issues

Fixes #606

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu
Copy link
Member

antfu commented Nov 27, 2025

/cc @sxzz should this be resolved automatically by tsdown?

@sxzz sxzz merged commit 276760a into unplugin:main Nov 27, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

imports option type is resolved as any

3 participants